home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: netcom.com!ram
- From: ram@netcom.com (Munagala V. S. Ramanath)
- Subject: Re: int::~int()
- Message-ID: <ramDpvxCw.6L9@netcom.com>
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- References: <317083F7.116E@public.sta.net.cn> <marnoldDpuDu9.D7s@netcom.com>
- Date: Mon, 15 Apr 1996 03:50:55 GMT
- Sender: ram@netcom9.netcom.com
-
- marnold@netcom.com (Matt Arnold) writes:
-
- >Xu Yifeng <jafd@public.sta.net.cn> writes:
-
- >>Hi everybody,
-
- >>can your compiler compile following program?
-
- >>//------------------------
- >>void main()
- >>{
- >> int i = 0;
-
- >> i.int::~int();
- >>}
- >>//------------------------
-
- >>is it a legal C++ program?
-
- >It's supposed to be, but most C++ compiler's will not compile it.
-
- gcc-2.7.2 compiles it just fine. The call is supposed to do nothing
- and is discussed in Stroustrup's book, p. 576-577.
-
- Ram
-